﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TJ_DriverReportKMModelWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.TJ_DriverReportKMModelWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=Title%></title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            fillCombobox();
        });

        function fillCombobox() {
            //#region 出车分站
            var urlstr = "../PR/Medical/GetStation?code=";
            $.EUIcomboboxForReport("#Station", {
                url: urlstr,
                valueField: 'ID',
                textField: 'Name',
                //prompt: '--请选择--',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }],
                onSelect: function (rec) {
                    var urlambCode = "../PR/Medical/GetAmbulance?code=" + rec.ID;
                    $.EUIcomboboxForReport("#Amb", {
                        url: urlambCode,
                        valueField: 'ID',
                        textField: 'Name',
                        //prompt: '--请选择--',
                        //editable: false,
                        OneOption: [{
                            ID: "",
                            Name: "--请选择--"
                        }]
                    });
                }
            });
            //#endregion

            //#region 车辆
            var ambUrl = "../PR/Medical/GetAmbulance?code=";
            $.EUIcomboboxForReport("#Amb", {
                url: ambUrl,
                valueField: 'ID',
                textField: 'Name',
                //editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            //#endregion

            //日报状态
            $("#State").combobox({
                editable: false,
                prompt: "--请选择--",
                panelHeight: 120,
                data: [{
                    value: '',
                    text: '--请选择--',
                }, {
                    value: '已填写日报',
                    text: '已填写日报'
                }, {
                    value: '已勾选任务，未填写日报',
                    text: '已勾选任务，未填写日报'
                }]
            });

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table>
            <tr>
                <td>日报日期：</td>
                <td>
                    <asp:TextBox ID="StartDate" class="easyui-datebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td>至：</td>
                <td>
                    <asp:TextBox ID="EndDate" class="easyui-datebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td>分站：</td>
                <td>
                    <asp:TextBox ID="Station" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
                <td>
                   &nbsp;
                </td>
            </tr>
            <tr>
                <td>姓名：</td>
                <td>
                    <asp:TextBox ID="Name" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td>日报状态：</td>
                <td>
                    <asp:TextBox ID="State" class="easyui-combobox" Style="width: 180px" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;
                </td>
                <td colspan="2">&nbsp;
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="查询" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
        <div style="border-left: 1px solid scrollbar; height: 100%;">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server"  Width="100%" Height="100%" SizeToReportContent="True"></rsweb:ReportViewer>

        </div>
    </form>
</body>
</html>
